package asia.hymsk.spring.pojo.mongodb;

/**
 * ClassName: RateMoreProducts
 * Package: com.example.demo.test.pojo
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 商品评分次数统计实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("RateMoreProducts")
public class RateMoreProducts {
    @Id
    private String id;
    @Field
    private Integer productId;//商品ID
    @Field
    private Integer count;//商品的评分次数

}
